	import {
		createRouter,
		createWebHashHistory
	} from 'vue-router'
	import changqufuzeren from '@/views/changqufuzeren/list'
	import xiaoduwancheng from '@/views/xiaoduwancheng/list'
	import bucaopinlei from '@/views/bucaopinlei/list'
	import songdagongchangxinxi from '@/views/songdagongchangxinxi/list'
	import users from '@/views/users/list'
	import dingdanwancheng from '@/views/dingdanwancheng/list'
	import xidixinxi from '@/views/xidixinxi/list'
	import kehu from '@/views/kehu/list'
	import bancixinxi from '@/views/bancixinxi/list'
	import hongganxinxi from '@/views/hongganxinxi/list'
	import bucaoxinxi from '@/views/bucaoxinxi/list'
	import hongganwancheng from '@/views/hongganwancheng/list'
	import xidiwancheng from '@/views/xidiwancheng/list'
	import usersCenter from '@/views/users/center'
	import kehuRegister from '@/views/kehu/register'
	import kehuCenter from '@/views/kehu/center'
	import changqufuzerenRegister from '@/views/changqufuzeren/register'
	import changqufuzerenCenter from '@/views/changqufuzeren/center'

export const routes = [{
		path: '/login',
		name: 'login',
		component: () => import('../views/login.vue')
	},{
		path: '/',
		name: '首页',
		component: () => import('../views/index'),
		children: [{
			path: '/',
			name: '首页',
			component: () => import('../views/HomeView.vue'),
			meta: {
				affix: true
			}
		}, {
			path: '/updatepassword',
			name: '修改密码',
			component: () => import('../views/updatepassword.vue')
		}
		
		,{
			path: '/usersCenter',
			name: '管理员个人中心',
			component: usersCenter
		}
		,{
			path: '/kehuCenter',
			name: '客户个人中心',
			component: kehuCenter
		}
		,{
			path: '/changqufuzerenCenter',
			name: '厂区负责人个人中心',
			component: changqufuzerenCenter
		}
		,{
			path: '/changqufuzeren',
			name: '厂区负责人',
			component: changqufuzeren
		}
		,{
			path: '/xiaoduwancheng',
			name: '消毒完成',
			component: xiaoduwancheng
		}
		,{
			path: '/bucaopinlei',
			name: '布草品类',
			component: bucaopinlei
		}
		,{
			path: '/songdagongchangxinxi',
			name: '送达工厂信息',
			component: songdagongchangxinxi
		}
		,{
			path: '/users',
			name: '管理员',
			component: users
		}
		,{
			path: '/dingdanwancheng',
			name: '订单完成',
			component: dingdanwancheng
		}
		,{
			path: '/xidixinxi',
			name: '洗涤信息',
			component: xidixinxi
		}
		,{
			path: '/kehu',
			name: '客户',
			component: kehu
		}
		,{
			path: '/bancixinxi',
			name: '班次信息',
			component: bancixinxi
		}
		,{
			path: '/hongganxinxi',
			name: '烘干信息',
			component: hongganxinxi
		}
		,{
			path: '/bucaoxinxi',
			name: '布草信息',
			component: bucaoxinxi
		}
		,{
			path: '/hongganwancheng',
			name: '烘干完成',
			component: hongganwancheng
		}
		,{
			path: '/xidiwancheng',
			name: '洗涤完成',
			component: xidiwancheng
		}
		]
	},
	{
		path: '/kehuRegister',
		name: '客户注册',
		component: kehuRegister
	},
	{
		path: '/changqufuzerenRegister',
		name: '厂区负责人注册',
		component: changqufuzerenRegister
	},
]

const router = createRouter({
	history: createWebHashHistory(process.env.BASE_URL),
	routes
})

export default router
